package top.huhuiyu.springboot3.p2301.service;

import jakarta.servlet.http.HttpServletResponse;
import org.springframework.web.multipart.MultipartFile;
import top.huhuiyu.springboot3.p2301.base.R;
import top.huhuiyu.springboot3.p2301.entity.TbFile;

public interface FileService {
    String UPLOAD_DIR = "upload/";
    String FILE_SAVE_NAME = "_%s_%s";
    String FILE_URL = "http://127.0.0.1:20081/";

    R<TbFile> upload(String fileinfo, MultipartFile file);

    void download(Integer id, HttpServletResponse response);

    void url(Integer id, HttpServletResponse response);
}
